import request from '@/utils/request'

// 获取表单数据
export const getMailbox = params => request({
  method: 'GET',
  url: '/service/mailbox',
  params
})

// 删除
export const delMailbox = id => request({
  method: 'DELETE',
  url: `/service/mailbox/${id}`
})
// 详情
export const editMailbox = id => request({
  method: 'GET',
  url: `service/mailbox/${id}`
})
// 编辑
export const PUTMailbox = data => request({
  method: 'PUT',
  url: `service/mailbox/${data.id}`,
  data
})
